﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="~/Content/css/bootstrap.css" rel="stylesheet" media="screen">
    <style>
      body {
        padding-top: 60px;
      }
    </style>
    <script src="~/Content/js/bootstrap.js"></script>
    
    <script src="~/Scripts/jquery.validate.js"></script>
        <script type="text/javascript">
            /* Máscaras ER */
            function mascara(o, f) {
                v_obj = o
                v_fun = f
                setTimeout("execmascara()", 1)
            }
            function execmascara() {
                v_obj.value = v_fun(v_obj.value)
            }
            function mtel(v) {
                v = v.replace(/\D/g, "");                   //Remove tudo o que não é dígito
                v = v.replace(/^(\d{2})(\d)/g, "($1) $2");  //Coloca parênteses em volta dos dois primeiros dígitos
                v = v.replace(/(\d)(\d{4})$/, "$1-$2");     //Coloca hífen entre o quarto e o quinto dígitos
                return v;
            }
            function id(el) {
                return document.getElementById(el);
            }
            window.onload = function () {
                id('telefone').onkeyup = function () {
                    mascara(this, mtel);
                }
            }
    </script>
</head>
<body>    
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">         
        <div class="container">
            <div class="logo">
                <img src="../../Content/img/sde_topo.png" />               
             </div>               
            <div class="sair"> 
                @Html.ActionLink("Sair", "Logout", "Home", null, new{@class="btn btn-small btn-primary"})
                <br />
                @Session["LogedUserName"].ToString() 
            </div>
 @*           <div class="loged">
                @Session["LogedUserNomeCompleto"].ToString()
            </div> *@            
            
            
            @{
                if (Session["LogedUserPerfil"].ToString() == "professor")
                {
              <div class="nav-collapse collapse">
                  
                <ul class="nav">
                    @if (ViewBag.Title.ToString() == "professor")
                    {<li class="active">@Html.ActionLink("Home", "Index", "Sistema")</li>
                    }else{<li>@Html.ActionLink("Home", "Index", "Sistema")</li>}  

                    @if (ViewBag.Title.ToString() == "Turma")
                    {<li class="active">@Html.ActionLink("Turmas", "Index", "Turma")</li>
                    }else{<li>@Html.ActionLink("Turmas", "Index", "Turma")</li>}  

                    @if (ViewBag.Title.ToString() == "Aluno")
                    {<li class="active">@Html.ActionLink("Aluno", "Index", "Aluno")</li>
                    }else{<li>@Html.ActionLink("Aluno", "Index", "Aluno")</li>}

                    @if (ViewBag.Title.ToString() == "Matricula")
                    {<li class="active">@Html.ActionLink("Matricula", "Index", "Matricula")</li>
                    }else{<li>@Html.ActionLink("Matricula", "Index", "Matricula")</li>}

                    @if (ViewBag.Title.ToString() == "Diário")
                    {<li class="active">@Html.ActionLink("Diário", "Index", "Diario")</li>
                    }else{<li>@Html.ActionLink("Diário", "Index", "Diario") </li>}

                    @if (ViewBag.Title.ToString() == "Sugestões")
                    {<li class="active">@Html.ActionLink("Sugestões", "Index", "Sugestoes")</li>
                    }else{<li>@Html.ActionLink("Sugestões", "Index", "Sugestoes") </li>}
                    



                </ul>
              </div>        
                
                }
                else
                {

              <div class="nav-collapse collapse">
                <ul class="nav">
                    @if (ViewBag.Title.ToString() == "coordenador")
                    {<li class="active">@Html.ActionLink("Home", "Index", "Sistema")</li>
                    }else{<li>@Html.ActionLink("Home", "Index", "Sistema")</li>}  

                    @if (ViewBag.Title.ToString() == "Usuário")
                    {<li class="active">@Html.ActionLink("Usuário", "Index", "Usuario")</li>
                    }else{<li>@Html.ActionLink("Usuário", "Index", "Usuario")</li>}
                    
                    @if (ViewBag.Title.ToString() == "Funcionário")
                    {<li class="active">@Html.ActionLink("Funcionário", "Index", "Funcionario")</li>
                    }else{<li>@Html.ActionLink("Funcionário", "Index", "Funcionario")</li>}

                    @if (ViewBag.Title.ToString() == "Aluno")
                    {<li class="active">@Html.ActionLink("Aluno", "Index", "Aluno")</li>
                    }else{<li>@Html.ActionLink("Aluno", "Index", "Aluno")</li>}

                    @if (ViewBag.Title.ToString() == "Curso")
                    {<li class="active">@Html.ActionLink("Curso", "Index", "Curso")</li>
                    }else{<li>@Html.ActionLink("Curso", "Index", "Curso")</li>}

                    @if (ViewBag.Title.ToString() == "Unidade Curricular")
                    {<li class="active">@Html.ActionLink("Unidade Curricular", "Index", "UnidadeCurricular")</li>
                    }else{<li>@Html.ActionLink("Unidade Curricular", "Index", "UnidadeCurricular")</li>}
                    
                    @if (ViewBag.Title.ToString() == "Turma")
                    {<li class="active">@Html.ActionLink("Turma", "Index", "Turma")</li>
                    }else{<li>@Html.ActionLink("Turma", "Index", "Turma")</li>}

                    @if (ViewBag.Title.ToString() == "Matricula")
                    {<li class="active">@Html.ActionLink("Matricula", "Index", "Matricula")</li>
                    }else{<li>@Html.ActionLink("Matricula", "Index", "Matricula")</li>}

                    @if (ViewBag.Title.ToString() == "Diário")
                    {<li class="active">@Html.ActionLink("Diário", "Index", "Diario")</li>
                    }else{<li>@Html.ActionLink("Diário", "Index", "Diario") </li>}

                    @*<li>@Html.ActionLink("Usuário", "Index", "Usuario")</li>
                    <li>@Html.ActionLink("Professor", "Index", "Professor")</li>
                    <li>@Html.ActionLink("Aluno", "Index", "Aluno")</li>
                    <li>@Html.ActionLink("Curso", "Index", "Curso")</li>
                    <li>@Html.ActionLink("Unidade Curricular", "Index", "UnidadeCurricular")</li>
                    <li>@Html.ActionLink("Turma", "Index", "Turma")</li>
                    <li>@Html.ActionLink("Matricula", "Index", "Matricula")</li>
                    <li>@Html.ActionLink("Frequência", "Index", "Frequencia")</li> *@                 
                </ul>
              </div>          

                }
            }
          
        </div>
          
      </div>
           
    </div>
    
    <div class="meio">

    @RenderBody()

    </div>
    
    @RenderSection("scripts", required: false)

<div style="margin: 0 auto 0 auto; width: 500px; text-align: center;">
    <small>&copy;2015 - Desenvolvido por <a href="http://" target="_blank">NineBit - Sistemas Personalizados.</a></small>
</div>

</body>
</html>